﻿@model List<RFinance.Domain.Entities.Categoria>

@{
    ViewBag.Title = "Index";
}

<h2><b>Categorias</b></h2><br/>

<table id="grid"></table>
<div id="pager2"></div>

<script type="text/javascript">

    $(document).ready(function () {
        
        jQuery("#grid").jqGrid({
            url: '/Categoria/ObterTodas',
            datatype: "json",
            colNames: ['Nome'],
            colModel: [{ name: 'Nome', index: 'Nome', width: 300 }],
            pager: '#pager2',
            sortname: 'Nome',
            viewrecords: true,
            multiselect:true
        });
        
        jQuery("#grid").jqGrid('navGrid', '#pager2', { edit: false, add: false, del: false });
    });

</script>
